﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace binary
{
    public class ConfigSingle
    {
        public string host { get; set; }
        public string user { get; set; }
        public string password { get; set; }
        public string dbName { get; set; }
        public string logTable { get; set; }
        public string errorsTable { get; set; }

        public bool isValid()
        {
            if (String.IsNullOrEmpty(this.user)) return false;
            if (String.IsNullOrEmpty(this.password)) return false;
            if (String.IsNullOrEmpty(this.host)) return false;
            if (String.IsNullOrEmpty(this.dbName)) return false;
            if (String.IsNullOrEmpty(this.dbName)) return false;
            if (String.IsNullOrEmpty(this.dbName)) return false;
            return true;
        }
    }
}
